import service from "@/utils/requset"

export default {
  //分类列表 
  reqHotList() {
    return service.get<any, any>(`/hotWordBillboardCategory`)
  },
  //某个分类下的关键字列表
  reqKeyWord(categoryId: number, size: number) {
    return service.get<any, any>(`/hotWordBillboard/list/2.0?categoryId=${categoryId}&size=${size}`)
  },
  //实时关键字列表
  reqSearch(kw: string, paidFilter: string) {
    return service.get<any, any>(`/revision/suggest?kw=${kw}&paidFilter=${paidFilter}&scope=all`)
  },
  //搜索结果列表
  reqResultList(kw: string, core: string, page: number, rows: number) {
    return service.get<any, any>(`/m-revision/page/search?kw=${kw}&core=${core}&page=${page}&rows=${rows}`)
  },

  //登录
  reqLogin() {
    return service.post(`/user/passport/login`)
  }

}